package org.tomcat.unit502;

import javax.servlet.ServletException;
import java.io.IOException;

public interface Container {

    public String getName();

    public void setName(String name);

    public Mapper findMapper(String protocol);

    public void addChild(Container child);

    public void setParent(Container container);

    public void removeChild(Container child);

    public Container findChild(String name);

    public Container[] findChildren();

    public void invoke(Request request, Response response) throws IOException, ServletException;

    public Loader getLoader();
}

